package com.travelshare.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.travelshare.business.mapper.InfoSensitiveMapper;
import com.travelshare.business.domain.InfoSensitive;
import com.travelshare.business.service.IInfoSensitiveService;

/**
 * 敏感词信息Service业务层处理
 * 
 * @author travelshare
 * @date 2024-02-22
 */
@Service
public class InfoSensitiveServiceImpl implements IInfoSensitiveService 
{
    @Autowired
    private InfoSensitiveMapper infoSensitiveMapper;

    /**
     * 查询敏感词信息
     * 
     * @param id 敏感词信息主键
     * @return 敏感词信息
     */
    @Override
    public InfoSensitive selectInfoSensitiveById(Long id)
    {
        return infoSensitiveMapper.selectInfoSensitiveById(id);
    }

    /**
     * 查询敏感词信息列表
     * 
     * @param infoSensitive 敏感词信息
     * @return 敏感词信息
     */
    @Override
    public List<InfoSensitive> selectInfoSensitiveList(InfoSensitive infoSensitive)
    {
        return infoSensitiveMapper.selectInfoSensitiveList(infoSensitive);
    }

    /**
     * 新增敏感词信息
     * 
     * @param infoSensitive 敏感词信息
     * @return 结果
     */
    @Override
    public int insertInfoSensitive(InfoSensitive infoSensitive)
    {
        return infoSensitiveMapper.insertInfoSensitive(infoSensitive);
    }

    /**
     * 修改敏感词信息
     * 
     * @param infoSensitive 敏感词信息
     * @return 结果
     */
    @Override
    public int updateInfoSensitive(InfoSensitive infoSensitive)
    {
        return infoSensitiveMapper.updateInfoSensitive(infoSensitive);
    }

    /**
     * 批量删除敏感词信息
     * 
     * @param ids 需要删除的敏感词信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoSensitiveByIds(Long[] ids)
    {
        return infoSensitiveMapper.deleteInfoSensitiveByIds(ids);
    }

    /**
     * 删除敏感词信息信息
     * 
     * @param id 敏感词信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoSensitiveById(Long id)
    {
        return infoSensitiveMapper.deleteInfoSensitiveById(id);
    }
}
